package com.dckj.auto.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author WangDong123
 * @since 2018-09-03
 */
@TableName("t_auth_menu_role")
public class AuthMenuRole extends Model<AuthMenuRole> {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单角色id
     */
    private String id;
    /**
     * 菜单id
     */
    @TableField("menu_id")
    private String menuId;
    /**
     * 角色id
     */
    @TableField("role_id")
    private String roleId;

    /**
     * 菜单属性
     */
    @TableField("menu_attribute")
    private Integer menuAttribute;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public Integer getMenuAttribute() {
        return menuAttribute;
    }

    public void setMenuAttribute(Integer menuAttribute) {
        this.menuAttribute = menuAttribute;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AutoMenuRole{" +
        "id=" + id +
        ", menuId=" + menuId +
        ", roleId=" + roleId +
        "}";
    }
}
